/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 100% !important;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff; /* 浅蓝色背景，模拟设计风格 */
    color: #333;
    line-height: 1.6;
}

/* 产品矩阵标题区域样式 */
.product-matrix-header {
    position: relative;
    text-align: center;
    height: 30rem; /* 设置高度为28rem */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.light-sweep {
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 避免影响点击事件 */
    background: linear-gradient( 45deg, /* 从左上到右下 */
    rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 30%, rgba(255, 255, 255, 0) 100% );
    background-size: 200% 200%; /* 放大背景，使光束更细腻 */
    opacity: 0.4;
    transform: rotate(45deg); /* 将渐变旋转45度 */
    animation: sweep 2s linear infinite; /* 动画名称、时长、线性、无限循环 */
}

@keyframes sweep {
    from {
        transform: translateX(0) rotate(135deg);
    }

    to {
        transform: translateX(100%) rotate(135deg);
    }
}

.matrix-title {
    display: inline-block;
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(120deg, #ffa61d 0%, #076aff 25%, #0538ff 100%, transparent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /*改为白色，在深色背景上更清晰 */
    vertical-align: middle;
    position: relative;
    z-index: 1;
    margin-top: 6rem;
}

.matrix-desc {
    max-width: 800px;
    margin: 1rem auto;
    font-size: 1.5rem;
    color: #121A27c7; /* 浅灰白色，在深色背景上更清晰 */
    position: relative;
    z-index: 1;
}

.product-matrix-container {
    background: linear-gradient(180deg, #e6f7ff, #d0e8ff, #f0f7ff); /* 浅蓝色渐变背景 */
}
/* 产品矩阵内容区域样式 */
.product-matrix {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 4rem 1.5rem 5rem; /* 上方padding设置为5rem，与标题区域保持距离 */
    max-width: 75%; /* 设置为页面版心的75% */
    margin: 0 auto; /* 居中显示 */
}

.product-card {
    width: calc(33.333% - 20px); /* 一排显示3个产品 */
    min-width: 16rem; /* 最小宽度，确保在小屏幕上不会太窄 */
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.2rem 1rem rgba(88, 104, 120, 0.1);
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        cursor: pointer; /* 鼠标悬停变手型，若有链接可结合a标签 */
        background-color: #f3f4f7;
        border: 1px solid #0099ff;
    }

    .product-card img {
        width: 4rem;
        height: 4rem;
        margin: 1rem 0;
    }

    .product-card h3 {
        font-size: 1.4rem;
        font-weight: bold;
        margin-bottom: 0.2rem;
        color: #121A27;
    }
        .product-card h3:hover {
            color: #0090ff;
        }
        .product-card p {
            font-size: 1rem;
            color: #121a27a7;
        }
@media (max-width: 1366px) {
    .product-card h3{
        font-size: 1.2rem;
    }
    .product-card p {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 限制显示 2 行 */
        -webkit-box-orient: vertical;
        overflow: hidden; /* 超出部分隐藏 */
        text-overflow: ellipsis;
    }
    .product-matrix{
        max-width: 90%;
    }
}
